package model;

import modelInterfaces.IObject;

/**
 * Represents the content with which {@link Subject} interacted 
 * @see Subject
 * @see IObject
 */
public class Object implements IObject {
	
	/** Numeric identifier*/
	private int id;

	@Override
	public int getId() {
		return id;
	}

	@Override
	public void setId(int id) {
		this.id = id;
	}
	
	@Override
	public boolean equals(java.lang.Object o) {
	    if (!(o instanceof IObject)) {
	      return false;
	    }
	    IObject other = (IObject) o;
	    return (id==other.getId());
	}
}
